package Operation;

import book.Book;
import book.BookList;

/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2021-09-21
 * Time:21:07
 */
public class DisplayOperation implements IOperation{

    @Override
    public void work(BookList bookList) {
        System.out.println("打印图书！");
        int size = bookList.getBookSize();

        for (int i = 0; i < size; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
